@echo off

echo "start copy"

if not exist nginx\html\dist (
    echo "html开始复制"
    mkdir nginx\html\dist
    xcopy %CD%\..\xc-ui\vue-admin\dist\*.* %CD%\nginx\html\dist\ /E /Y
    echo "html完成复制"
)

if not exist xc\auth\jar\xc-auth.jar (
    echo "auth开始复制"
    copy %CD%\..\xc-auth\target\xc-auth.jar %CD%\xc\auth\jar\xc-auth.jar /Y
    echo "auth完成复制"
)

if not exist xc\gateway\jar\xc-gateway.jar (
    echo "gateway开始复制"
    copy %CD%\..\xc-gateway\target\xc-gateway.jar %CD%\xc\gateway\jar\xc-gateway.jar /Y
    echo "gateway完成复制"
)

if not exist xc\modules\ai\jar\xc-modules-ai.jar (
    echo "ai开始复制"
    copy %CD%\..\xc-modules\xc-ai\target\xc-modules-ai.jar %CD%\xc\modules\ai\jar\xc-modules-ai.jar /Y
    echo "ai完成复制"
)

if not exist xc\modules\file\jar\xc-modules-file.jar (
    echo "file开始复制"
    copy %CD%\..\xc-modules\xc-file\target\xc-modules-file.jar %CD%\xc\modules\file\jar\xc-modules-file.jar /Y
    echo "file完成复制"
)

if not exist xc\modules\gen\jar\xc-modules-gen.jar (
    echo "gen开始复制"
    copy %CD%\..\xc-modules\xc-gen\target\xc-modules-gen.jar %CD%\xc\modules\gen\jar\xc-modules-gen.jar /Y
    echo "gen完成复制"
)

if not exist xc\modules\job\jar\xc-modules-job.jar (
    echo "job开始复制"
    copy %CD%\..\xc-modules\xc-job\target\xc-modules-job.jar %CD%\xc\modules\job\jar\xc-modules-job.jar /Y
    echo "job完成复制"
)

if not exist xc\modules\system\jar\xc-modules-system.jar (
    echo "system开始复制"
    copy %CD%\..\xc-modules\xc-system\target\xc-modules-system.jar %CD%\xc\modules\system\jar\xc-modules-system.jar /Y
    echo "system完成复制"
)

if not exist xc\visual\monitor\jar\xc-visual-monitor.jar (
    echo "monitor开始复制"
    copy %CD%\..\xc-visual\xc-monitor\target\xc-visual-monitor.jar %CD%\xc\visual\monitor\jar\xc-visual-monitor.jar /Y
    echo "monitor完成复制"
)

echo "copy complete"
pause
